const router = require('koa-router')();
const UserController = require('../controller/users')

router.prefix('/api') // 统一添加路由前缀


router.get('/user', UserController.index)
router.get('/page', UserController.page)
router.post('/upload', UserController.upload)

router.post('/login', UserController.login)

// router.post('/register')

// login register find findid add update delete


module.exports = router;